<!doctype html>
<html lang="zh_CN">
<head>
    <meta charset="UTF-8">
    <title>中奖页面</title>

    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <meta name="viewport" content="width=640, user-scalable=no">

    <link rel="stylesheet" href="${resources}/css/common.css">
    <link rel="stylesheet" href="${resources}/css/getReward.css">
</head>
<body>
<div id="container">
    <div class="header">
        <a href="${path}/manage/vote/one" class="back"><img src="${resources}/vote/4_1.png">返回</a>
        <h3>有奖票选最美员工</h3>
    </div>
    	<input id="path" type="hidden" value="${path}">
    	<input id="resources" type="hidden" value="${resources}">
    <#if empList??>
    <div class="mainbody">
        <div>
            <div class="banner">
                <img src="${resources}/vote/4_25_02.jpg">
            </div>
            <div class="top1">
            	<#list empList as emp>
            	  <#if emp_index==0>
	                <div class="conBox">
	                    <span><img src="${emp.headimg}"></span>
	                    <img src="${resources}/vote/4_27_05.png">
	                    <div class="intro">
	                        <span>姓名: ${emp.name} </span>
	                        <span>票数: ${emp.votes}</span>
	                        <span>部门:${emp.cooprt.name} </span>
	                    </div>
	                </div>
	               </#if>
                </#list>
            </div>
            <div class="content">
                <ul id="list">
	                <#list empList as emp>
	            	  <#if emp_index gt 0>
	                    <li>
	                        <a href="#">
	                            <div class="conLeft">
	                                    <span>
	                                        <img src="${emp.headimg}">
	                                        <img src="${resources}/vote/4_29_09.png">
	                                    </span>
	                            </div>
	                            <div class="intro">
	                                 <span>姓名: ${emp.name} </span>
	                       			 <span>票数: ${emp.votes}</span>
	                      			 <span>部门:${emp.cooprt.name} </span>
	                            </div>
	                        </a>
	                        <span class="sort">TOP${emp_index+1}</span>
	                    </li>
	                    </#if>
	                </#list>
                </ul>
                <div id="tip">上滑加载更多..</div>
            </div>
        </div>
    </div>
    <#else>
    	 <div class="mainbody">
	        <div>
	            <div class="banner">
	                <img src="${resources}/vote/4_25_02.jpg">
	            </div>
	            <div class="top1">
	                <div class="conBox">
	                    <span>?</span>
	                    <img src="${resources}/vote/4_27_05.png">
	                    <div class="intro">
	                        <span>姓名: 尚未公布结果，敬请期待 </span>
	                        <span>票数: 尚未公布结果，敬请期待 </span>
	                        <span>部门: 尚未公布结果，敬请期待 </span>
	                    </div>
	                </div>
	            </div>
	            <div class="content">
	                <ul id="list">
	                    <li>
	                        <a href="#">
	                            <div class="conLeft">
	                                    <span>
	                                        ?
	                                        <img src="${resources}/vote/4_29_09.png">
	                                    </span>
	                            </div>
	                            <div class="intro">
	                                <span>姓名: 尚未公布结果，敬请期待 </span>
	                                <span>票数: 尚未公布结果，敬请期待 </span>
	                                <span>部门: 尚未公布结果，敬请期待 </span>
	                            </div>
	                        </a>
	                        <span class="sort">TOP2</span>
	                    </li>
	                    <li>
	                        <a href="#">
	                            <div class="conLeft">
	                                    <span>
	                                        ?
	                                        <img src="${resources}/vote/4_29_09.png">
	                                    </span>
	                            </div>
	                            <div class="intro">
	                                <span>姓名: 尚未公布结果，敬请期待 </span>
	                                <span>票数: 尚未公布结果，敬请期待 </span>
	                                <span>部门: 尚未公布结果，敬请期待 </span>
	                            </div>
	                        </a>
	                        <span class="sort">TOP2</span>
	                    </li>
	                </ul>
	            </div>
	        </div>
	    </div>
    </#if>
    <div class="bottom"><img src="${resources}/vote/4_15.png"></div>
</div>
</body>
<script src="${resources}/scripts/jquery-2.2.2.min.js"></script>
<script src="${resources}/scripts/iscroll-probe.js"></script>
<script src="${resources}/scripts/getReward.js"></script>
<script>
    window.onload = function () {
    	var flag = '${flag}';
    	if(flag==1){
	        main.init();
	        main.scroll();
    	}
    }
</script>
</html>